<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>nextTick</title>
</head>
<body>
    <div id="app">
        <h3>{{message}}</h3>
    </div>
    <script src="vue.js"></script>
    <script>
        const vm = new Vue({
            el:'#app',
            data:{
                message:'小胖子'
            }
        })
        vm.message='new Message';
        // console.log(vm.$el.textContent);
        Vue.nextTick(()=>{
            console.log(vm.$el.textContent);
        })
    </script>
</body>
</html>